﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="EditProfileScreen.aspx.cs" Inherits="METU_CMT.EditProfileScreen" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Table ID="Table1" runat="server" Width="60%" HorizontalAlign="Center" CssClass="chp-grid"  style="font-size: 15px; margin-left: 150px; margin-top:50px;">
        <asp:TableRow ID="TableRow1" runat="server">
            <asp:TableCell ID="TableCell4" runat="server">
                <asp:Table ID="Table2" runat="server" Width="100%" HorizontalAlign="Center">
                    <asp:TableRow ID="TableRow2" runat="server">
                        <asp:TableCell ID="TableCell1" runat="server" Width="150">Name</asp:TableCell>
                        <asp:TableCell ID="TableCell3" runat="server" HorizontalAlign="Left" ColumnSpan="2">
                            <asp:TextBox runat="server" ID="txtName" CssClass="chp-text-field" Enabled="false"></asp:TextBox>
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow ID="TableRow3" runat="server">
                        <asp:TableCell ID="TableCell2" runat="server" Width="150">Surname</asp:TableCell>
                        <asp:TableCell ID="TableCell5" runat="server" HorizontalAlign="Left" ColumnSpan="2">
                            <asp:TextBox runat="server" ID="txtSurname" CssClass="chp-text-field" Enabled="false"></asp:TextBox>
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow ID="TableRow4" runat="server">
                        <asp:TableCell ID="TableCell6" runat="server" Width="150">Username</asp:TableCell>
                        <asp:TableCell ID="TableCell7" runat="server" HorizontalAlign="Left" ColumnSpan="2">
                            <asp:TextBox runat="server" ID="txtUserName" CssClass="chp-text-field"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtUserName"
                                Display="Dynamic" ErrorMessage="RequiredFieldValidator" ValidationGroup="MKE">* User name is required!</asp:RequiredFieldValidator>
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow ID="TableRow5" runat="server">
                        <asp:TableCell ID="TableCell8" runat="server" Width="150">New Password</asp:TableCell>
                        <asp:TableCell ID="TableCell9" runat="server" HorizontalAlign="Left" ColumnSpan="2">
                            <asp:TextBox runat="server" ID="txtNewPassword" CssClass="chp-text-field" TextMode="Password"></asp:TextBox>
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow ID="TableRow6" runat="server">
                        <asp:TableCell ID="TableCell10" runat="server" Width="150">Email</asp:TableCell>
                        <asp:TableCell ID="TableCell11" runat="server" HorizontalAlign="Left" ColumnSpan="2">
                            <asp:TextBox runat="server" ID="txtEmail" CssClass="chp-text-field"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEMail"
                                Display="Dynamic" ErrorMessage="RequiredFieldValidator" ValidationGroup="MKE">* E-Mail is required!</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="regexEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                    ControlToValidate="txtEMail" ErrorMessage="Invalid Email Format" ValidationGroup="MKE"></asp:RegularExpressionValidator>
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow ID="TableRow7" runat="server">
                        <asp:TableCell ID="TableCell12" runat="server">Image</asp:TableCell>
                        <asp:TableCell ID="TableCell14" runat="server" HorizontalAlign="Left" ColumnSpan="2">
                            <asp:Image runat="server" ID="imgProfilePicture" Width="150px" Height="150px" />
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow ID="TableRow8" runat="server">
                    <asp:TableCell ID="TableCell13" runat="server"></asp:TableCell>
                        <asp:TableCell ID="TableCell16" runat="server" HorizontalAlign="Left" Width="100">
                            <asp:FileUpload runat="server" ID="fuNewSchedule" Width="225" CssClass="chp-file-upload"/>
                        </asp:TableCell>
                        <asp:TableCell ID="TableCell15" runat="server" HorizontalAlign="Left">
                            <asp:Button runat="server" ID="btnAdd" OnClick="OnBtnAddClicked" Text="Add" CssClass="chp-button-red" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow ID="TableRow9" runat="server">
                        <asp:TableCell ID="TableCell17" runat="server" HorizontalAlign="Left" ColumnSpan="3">
                            <asp:Button runat="server" ID="btnSave" OnClick="onBtnSaveClicked" Text="Save" ValidationGroup="MKE" CssClass="chp-button-red"/>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
</asp:Content>
